package fristphase.day9_23.submarine;

import javax.swing.*;

public class MineSubmarine extends SeaObject implements LifeEnemy{

    public MineSubmarine(){
        super(62,20);
    }

    public Mine shootMine(){
        return new Mine(getX(),getY());
    }

    public void move(){
        setX(getX() + getSpeed());
    }

    public int getLife(){
        return 1;
    }

    public ImageIcon getImage(){
        return Images.minesubm;
    }
}
